package com.rainbow.modules.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rainbow.modules.sys.entity.Role;
import com.rainbow.modules.sys.entity.UserRole;
import com.rainbow.modules.sys.mapper.UserRoleMapper;
import com.rainbow.modules.sys.service.UserRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Auth rainbow
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements UserRoleService {

    @Override
    public List<Role> findByUserId(String userId) {
        return baseMapper.findByUserId(userId);
    }

    @Override
    public List<String> findDepIdsByUserId(String userId) {
        return baseMapper.findDepIdsByUserId(userId);
    }
}
